<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'supplies-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Các thông tin chứa <span class="required">*</span> là bắt buộc.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'type'); ?>
		<?php //echo $form->textField($model,'type',array('size'=>32,'maxlength'=>32)); ?>
		<?php echo CHtml::dropDownList('Supplies[type]',$model->type,array('Thức uống' => 'Thức uống','Trang phục' => 'Trang phục','Sân' =>'Sân','Khác' => 'Khác')); ?>
        <?php echo $form->error($model,'type'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'number'); ?>
		<?php echo $form->textField($model,'number'); ?>
		<?php echo $form->error($model,'number'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'unit'); ?>
        <?php echo CHtml::dropDownList('Supplies[unit]',$model->unit,array('Cái' => 'Cái','Kg' => 'Kg','Chai' =>'Chai','Không xác định' => 'Không xác định')); ?>
		<?php //echo $form->textField($model,'unit',array('size'=>16,'maxlength'=>16)); ?>
		<?php echo $form->error($model,'unit'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->